package com.yizhi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.yizhi.domain.dto.UserFormDTO;
import com.yizhi.domain.entityDO.UserDO;
import com.yizhi.domain.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 管理员信息表 Mapper 接口
 * </p>
 *
 * @author zhouyihe
 * @since 2024-04-16
 */
@Mapper
public interface UserMapper extends BaseMapper<UserDO> {
    /**
     * 用户分页查询
     * @param userFormDTO
     * @return
     */
    Page<UserVO> pageQuery(UserFormDTO userFormDTO);
    
    @Select("select * from user where username = #{username}")
    UserDO selectByUsername(String username);
}
